class SmsBase(object):
    def __init__(self):
        self.sendmax    = 0
        self.timewait   = 1
        self.url        = ''
        self.method     = 'GET'
        self.data       = ''
        self.headers    = {}

class Doubao(Sms):
    def __init__(self):
        Sms.__init__(self)
        self.url        = 'http://m.17doubao.com/v2/api/mobile/login/code'
        self.method     = 'POST'
        self.data       = 'mobile={target}'.format(self.target)
        self.headers.update({
            'User-Agent': 'Mozilla/Android',
            'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8',
            'X-Requested-With': 'XMLHttpRequest',
        })
